/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * SettingsPanel.java
 *
 * Created on Mar 4, 2010, 6:06:07 PM
 */

package dat215projekt.gui.components;

import dat215projekt.data.IMatDataHandlerExtended;
import java.awt.CardLayout;
import se.chalmers.cse.dat215.project.CreditCard;
import se.chalmers.cse.dat215.project.Customer;

/**
 *
 * @author teerik
 */
public class SettingsPanel extends javax.swing.JPanel {

    private static SettingsPanel instance;
    private static IMatDataHandlerExtended handler = IMatDataHandlerExtended.getInstance();

    public static SettingsPanel getInstance(){
        if(instance == null)
            instance = new SettingsPanel();

        return instance;
    }
    /** Creates new form SettingsPanel */
    public SettingsPanel() {
        initComponents();

        CreditCard cc = handler.getCreditCard();
        Customer c = handler.getCustomer();

        // Customer fields
        firstNameField.setText(c.getFirstName());
        lastNameField.setText(c.getLastName());
        adressField.setText(c.getAddress());
        emailField.setText(c.getEmail());
        phoneField.setText(c.getPhoneNumber());
        zipCodeField.setText(c.getPostCode());
        cityField.setText(c.getPostAddress());

        // Customer labels
        firstNameLabel.setText(c.getFirstName());
        lastNameLabel.setText(c.getLastName());
        adressLabel.setText(c.getAddress());
        emailLabel.setText(c.getEmail());
        phoneLabel.setText(c.getPhoneNumber());
        zipCodeLabel.setText(c.getPostCode());
        cityLabel.setText(c.getPostAddress());

        // Creditcard fielsd
        cardNumberField.setText(cc.getCardNumber());
        cardTypeBox.setSelectedItem(cc.getCardType());
        cardHolderField.setText(cc.getHoldersName());
        yearBox.setSelectedItem(new Integer(cc.getValidYear()).toString());
        monthBox.setSelectedItem(new Integer(cc.getValidMonth()).toString());
        cardTypeBox.setSelectedItem(cc.getCardType());
        cwField.setText(cc.getVerificationCode()+"");

        cardNumberLabel.setText(cc.getCardNumber());
        cardTypeLabel.setText(cc.getCardType());
        cardHolderLabel.setText(cc.getHoldersName());
        yearLabel.setText(""+cc.getValidYear());
        monthLabel.setText(""+cc.getValidMonth());
        cardTypeLabel.setText(cc.getCardType());
        cvvLabel.setText(cc.getVerificationCode()+"");

        firstNameEditLabel.setText("Förnamn:");
        lastNameEditLabel.setText("Efternamn:");
        adressEditLabel.setText("Adress:");
        zipCodeEditLabel.setText("Postnummer:");
        cityEditLabel.setText("Postort:");
        emailEditLabel.setText("E-post:");
        phoneEditLabel.setText("Telefonnummer:");

        cardNumberEditLabel.setText("Kortnummer:");
        cvvEditLabel.setText("CVV:");
        cardHolderEditLabel.setText("Kortinnehavares namn:");
        expirationEditLabel.setText("Giltighetstid:");
        cardTypeEditLabel.setText("Korttyp:");

        firstNameNoEditLabel.setText("Förnamn:");
        lastNameNoEditLabel.setText("Efternamn:");
        adressNoEditLabel.setText("Adress:");
        zipCodeNoEditLabel.setText("Postnummer:");
        cityNoEditLabel.setText("Postort:");
        emailNoEditLabel.setText("E-post:");
        phoneNoEditLabel.setText("Telefonnummer:");

        cardNumberNoEditLabel.setText("Kortnummer:");
        cvvNoEditLabel.setText("CVV:");
        cardHolderNoEditLabel.setText("Kortinnehavares namn:");
        expirationNoEditLabel.setText("Giltighetstid:");
        cardTypeNoEditLabel.setText("Korttyp:");

        ((CardLayout)customerPanel.getLayout()).show(customerPanel,"card2");
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        customerPanel = new javax.swing.JPanel();
        editMode = new javax.swing.JPanel();
        jLabel8 = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        emailEditLabel = new javax.swing.JLabel();
        zipCodeEditLabel = new javax.swing.JLabel();
        cityEditLabel = new javax.swing.JLabel();
        adressEditLabel = new javax.swing.JLabel();
        lastNameEditLabel = new javax.swing.JLabel();
        phoneEditLabel = new javax.swing.JLabel();
        phoneField = new javax.swing.JTextField();
        zipCodeField = new javax.swing.JTextField();
        cityField = new javax.swing.JTextField();
        emailField = new javax.swing.JTextField();
        adressField = new javax.swing.JTextField();
        lastNameField = new javax.swing.JTextField();
        firstNameEditLabel = new javax.swing.JLabel();
        firstNameField = new javax.swing.JTextField();
        jPanel4 = new javax.swing.JPanel();
        monthBox = new javax.swing.JComboBox();
        yearBox = new javax.swing.JComboBox();
        expirationEditLabel = new javax.swing.JLabel();
        cardHolderField = new javax.swing.JTextField();
        cvvEditLabel = new javax.swing.JLabel();
        cardHolderEditLabel = new javax.swing.JLabel();
        cwField = new javax.swing.JTextField();
        cardNumberField = new javax.swing.JTextField();
        cardNumberEditLabel = new javax.swing.JLabel();
        cardTypeBox = new javax.swing.JComboBox();
        cardTypeEditLabel = new javax.swing.JLabel();
        saveButton = new javax.swing.JButton();
        noEditMode = new javax.swing.JPanel();
        jLabel13 = new javax.swing.JLabel();
        cardHolderNoEditLabel = new javax.swing.JLabel();
        cvvNoEditLabel = new javax.swing.JLabel();
        cardNumberNoEditLabel = new javax.swing.JLabel();
        phoneNoEditLabel = new javax.swing.JLabel();
        zipCodeNoEditLabel = new javax.swing.JLabel();
        cityNoEditLabel = new javax.swing.JLabel();
        emailNoEditLabel = new javax.swing.JLabel();
        adressNoEditLabel = new javax.swing.JLabel();
        expirationNoEditLabel = new javax.swing.JLabel();
        lastNameNoEditLabel = new javax.swing.JLabel();
        firstNameNoEditLabel = new javax.swing.JLabel();
        firstNameLabel = new javax.swing.JLabel();
        lastNameLabel = new javax.swing.JLabel();
        adressLabel = new javax.swing.JLabel();
        zipCodeLabel = new javax.swing.JLabel();
        cityLabel = new javax.swing.JLabel();
        emailLabel = new javax.swing.JLabel();
        phoneLabel = new javax.swing.JLabel();
        cardNumberLabel = new javax.swing.JLabel();
        cvvLabel = new javax.swing.JLabel();
        cardHolderLabel = new javax.swing.JLabel();
        monthLabel = new javax.swing.JLabel();
        yearLabel = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        cardTypeNoEditLabel = new javax.swing.JLabel();
        cardTypeLabel = new javax.swing.JLabel();
        editButton = new javax.swing.JButton();
        monthLabel1 = new javax.swing.JLabel();

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(dat215projekt.Dat215projektApp.class).getContext().getResourceMap(SettingsPanel.class);
        setBackground(resourceMap.getColor("Form.background")); // NOI18N
        setName("Form"); // NOI18N

        customerPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        customerPanel.setName("customerPanel"); // NOI18N
        customerPanel.setOpaque(false);
        customerPanel.setLayout(new java.awt.CardLayout());

        editMode.setEnabled(false);
        editMode.setName("editMode"); // NOI18N
        editMode.setOpaque(false);

        jLabel8.setFont(resourceMap.getFont("jLabel8.font")); // NOI18N
        jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
        jLabel8.setName("jLabel8"); // NOI18N

        jPanel3.setName("jPanel3"); // NOI18N
        jPanel3.setOpaque(false);

        emailEditLabel.setFont(resourceMap.getFont("firstNameEditLabel.font")); // NOI18N
        emailEditLabel.setText(resourceMap.getString("emailEditLabel.text")); // NOI18N
        emailEditLabel.setName("emailEditLabel"); // NOI18N

        zipCodeEditLabel.setFont(resourceMap.getFont("firstNameEditLabel.font")); // NOI18N
        zipCodeEditLabel.setText(resourceMap.getString("zipCodeEditLabel.text")); // NOI18N
        zipCodeEditLabel.setName("zipCodeEditLabel"); // NOI18N

        cityEditLabel.setFont(resourceMap.getFont("firstNameEditLabel.font")); // NOI18N
        cityEditLabel.setText(resourceMap.getString("cityEditLabel.text")); // NOI18N
        cityEditLabel.setName("cityEditLabel"); // NOI18N

        adressEditLabel.setFont(resourceMap.getFont("firstNameEditLabel.font")); // NOI18N
        adressEditLabel.setText(resourceMap.getString("adressEditLabel.text")); // NOI18N
        adressEditLabel.setName("adressEditLabel"); // NOI18N

        lastNameEditLabel.setFont(resourceMap.getFont("firstNameEditLabel.font")); // NOI18N
        lastNameEditLabel.setText(resourceMap.getString("lastNameEditLabel.text")); // NOI18N
        lastNameEditLabel.setName("lastNameEditLabel"); // NOI18N

        phoneEditLabel.setFont(resourceMap.getFont("firstNameEditLabel.font")); // NOI18N
        phoneEditLabel.setText(resourceMap.getString("phoneEditLabel.text")); // NOI18N
        phoneEditLabel.setName("phoneEditLabel"); // NOI18N

        phoneField.setFont(resourceMap.getFont("firstNameEditLabel.font")); // NOI18N
        phoneField.setName("phoneField"); // NOI18N

        zipCodeField.setFont(resourceMap.getFont("firstNameEditLabel.font")); // NOI18N
        zipCodeField.setName("zipCodeField"); // NOI18N

        cityField.setFont(resourceMap.getFont("firstNameEditLabel.font")); // NOI18N
        cityField.setName("cityField"); // NOI18N

        emailField.setFont(resourceMap.getFont("firstNameEditLabel.font")); // NOI18N
        emailField.setName("emailField"); // NOI18N

        adressField.setFont(resourceMap.getFont("firstNameEditLabel.font")); // NOI18N
        adressField.setName("adressField"); // NOI18N

        lastNameField.setFont(resourceMap.getFont("firstNameEditLabel.font")); // NOI18N
        lastNameField.setName("lastNameField"); // NOI18N

        firstNameEditLabel.setFont(resourceMap.getFont("firstNameEditLabel.font")); // NOI18N
        firstNameEditLabel.setText(resourceMap.getString("firstNameEditLabel.text")); // NOI18N
        firstNameEditLabel.setName("firstNameEditLabel"); // NOI18N

        firstNameField.setFont(resourceMap.getFont("firstNameEditLabel.font")); // NOI18N
        firstNameField.setName("firstNameField"); // NOI18N

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(zipCodeEditLabel)
                    .addComponent(cityEditLabel)
                    .addComponent(emailEditLabel)
                    .addComponent(adressEditLabel)
                    .addComponent(firstNameEditLabel)
                    .addComponent(lastNameEditLabel)
                    .addComponent(phoneEditLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(cityField)
                    .addComponent(emailField)
                    .addComponent(phoneField, javax.swing.GroupLayout.DEFAULT_SIZE, 145, Short.MAX_VALUE)
                    .addComponent(adressField)
                    .addComponent(lastNameField)
                    .addComponent(firstNameField)
                    .addComponent(zipCodeField, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(firstNameField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(firstNameEditLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lastNameField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lastNameEditLabel))
                .addGap(9, 9, 9)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(adressField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(adressEditLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(zipCodeField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(zipCodeEditLabel))
                .addGap(18, 18, 18)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cityField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cityEditLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(emailField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(emailEditLabel))
                .addGap(11, 11, 11)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(phoneField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(phoneEditLabel))
                .addContainerGap(79, Short.MAX_VALUE))
        );

        jPanel4.setName("jPanel4"); // NOI18N
        jPanel4.setOpaque(false);

        monthBox.setFont(resourceMap.getFont("monthBox.font")); // NOI18N
        monthBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "MM", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12" }));
        monthBox.setName("monthBox"); // NOI18N

        yearBox.setFont(resourceMap.getFont("monthBox.font")); // NOI18N
        yearBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "ÅÅ", "10", "11", "12", "13", "14", "15" }));
        yearBox.setName("yearBox"); // NOI18N

        expirationEditLabel.setFont(resourceMap.getFont("monthBox.font")); // NOI18N
        expirationEditLabel.setText(resourceMap.getString("expirationEditLabel.text")); // NOI18N
        expirationEditLabel.setName("expirationEditLabel"); // NOI18N

        cardHolderField.setFont(resourceMap.getFont("monthBox.font")); // NOI18N
        cardHolderField.setName("cardHolderField"); // NOI18N

        cvvEditLabel.setFont(resourceMap.getFont("monthBox.font")); // NOI18N
        cvvEditLabel.setText(resourceMap.getString("cvvEditLabel.text")); // NOI18N
        cvvEditLabel.setName("cvvEditLabel"); // NOI18N

        cardHolderEditLabel.setFont(resourceMap.getFont("monthBox.font")); // NOI18N
        cardHolderEditLabel.setText(resourceMap.getString("cardHolderEditLabel.text")); // NOI18N
        cardHolderEditLabel.setName("cardHolderEditLabel"); // NOI18N

        cwField.setFont(resourceMap.getFont("monthBox.font")); // NOI18N
        cwField.setName("cwField"); // NOI18N

        cardNumberField.setFont(resourceMap.getFont("monthBox.font")); // NOI18N
        cardNumberField.setName("cardNumberField"); // NOI18N

        cardNumberEditLabel.setFont(resourceMap.getFont("monthBox.font")); // NOI18N
        cardNumberEditLabel.setText(resourceMap.getString("cardNumberEditLabel.text")); // NOI18N
        cardNumberEditLabel.setName("cardNumberEditLabel"); // NOI18N

        cardTypeBox.setFont(resourceMap.getFont("monthBox.font")); // NOI18N
        cardTypeBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "VISA", "MASTERCARD" }));
        cardTypeBox.setName("cardTypeBox"); // NOI18N

        cardTypeEditLabel.setFont(resourceMap.getFont("monthBox.font")); // NOI18N
        cardTypeEditLabel.setText(resourceMap.getString("cardTypeEditLabel.text")); // NOI18N
        cardTypeEditLabel.setName("cardTypeEditLabel"); // NOI18N

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(cardTypeEditLabel)
                    .addComponent(expirationEditLabel)
                    .addComponent(cardNumberEditLabel)
                    .addComponent(cvvEditLabel)
                    .addComponent(cardHolderEditLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cardNumberField, javax.swing.GroupLayout.DEFAULT_SIZE, 312, Short.MAX_VALUE)
                    .addComponent(cardHolderField, javax.swing.GroupLayout.DEFAULT_SIZE, 312, Short.MAX_VALUE)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(yearBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(monthBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(cardTypeBox, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cwField, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cardNumberEditLabel)
                    .addComponent(cardNumberField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cvvEditLabel)
                    .addComponent(cwField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(12, 12, 12)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cardHolderEditLabel)
                    .addComponent(cardHolderField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(yearBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(monthBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(expirationEditLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cardTypeBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cardTypeEditLabel))
                .addContainerGap(157, Short.MAX_VALUE))
        );

        saveButton.setText(resourceMap.getString("saveButton.text")); // NOI18N
        saveButton.setToolTipText(resourceMap.getString("saveButton.toolTipText")); // NOI18N
        saveButton.setName("saveButton"); // NOI18N
        saveButton.setPreferredSize(new java.awt.Dimension(150, 30));
        saveButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                saveButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout editModeLayout = new javax.swing.GroupLayout(editMode);
        editMode.setLayout(editModeLayout);
        editModeLayout.setHorizontalGroup(
            editModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(editModeLayout.createSequentialGroup()
                .addGroup(editModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, 876, Short.MAX_VALUE)
                    .addGroup(editModeLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, editModeLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(saveButton, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        editModeLayout.setVerticalGroup(
            editModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(editModeLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel8)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(editModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(saveButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        customerPanel.add(editMode, "card3");

        noEditMode.setBackground(resourceMap.getColor("noEditMode.background")); // NOI18N
        noEditMode.setName("noEditMode"); // NOI18N
        noEditMode.setOpaque(false);

        jLabel13.setFont(resourceMap.getFont("jLabel13.font")); // NOI18N
        jLabel13.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel13.setText(resourceMap.getString("jLabel13.text")); // NOI18N
        jLabel13.setName("jLabel13"); // NOI18N

        cardHolderNoEditLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        cardHolderNoEditLabel.setText(resourceMap.getString("cardHolderNoEditLabel.text")); // NOI18N
        cardHolderNoEditLabel.setName("cardHolderNoEditLabel"); // NOI18N

        cvvNoEditLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        cvvNoEditLabel.setText(resourceMap.getString("cvvNoEditLabel.text")); // NOI18N
        cvvNoEditLabel.setName("cvvNoEditLabel"); // NOI18N

        cardNumberNoEditLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        cardNumberNoEditLabel.setText(resourceMap.getString("cardNumberNoEditLabel.text")); // NOI18N
        cardNumberNoEditLabel.setName("cardNumberNoEditLabel"); // NOI18N

        phoneNoEditLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        phoneNoEditLabel.setText(resourceMap.getString("phoneNoEditLabel.text")); // NOI18N
        phoneNoEditLabel.setName("phoneNoEditLabel"); // NOI18N

        zipCodeNoEditLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        zipCodeNoEditLabel.setText(resourceMap.getString("zipCodeNoEditLabel.text")); // NOI18N
        zipCodeNoEditLabel.setName("zipCodeNoEditLabel"); // NOI18N

        cityNoEditLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        cityNoEditLabel.setText(resourceMap.getString("cityNoEditLabel.text")); // NOI18N
        cityNoEditLabel.setName("cityNoEditLabel"); // NOI18N

        emailNoEditLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        emailNoEditLabel.setText(resourceMap.getString("emailNoEditLabel.text")); // NOI18N
        emailNoEditLabel.setName("emailNoEditLabel"); // NOI18N

        adressNoEditLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        adressNoEditLabel.setText(resourceMap.getString("adressNoEditLabel.text")); // NOI18N
        adressNoEditLabel.setName("adressNoEditLabel"); // NOI18N

        expirationNoEditLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        expirationNoEditLabel.setText(resourceMap.getString("expirationNoEditLabel.text")); // NOI18N
        expirationNoEditLabel.setName("expirationNoEditLabel"); // NOI18N

        lastNameNoEditLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        lastNameNoEditLabel.setText(resourceMap.getString("lastNameNoEditLabel.text")); // NOI18N
        lastNameNoEditLabel.setName("lastNameNoEditLabel"); // NOI18N

        firstNameNoEditLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        firstNameNoEditLabel.setText(resourceMap.getString("firstNameNoEditLabel.text")); // NOI18N
        firstNameNoEditLabel.setName("firstNameNoEditLabel"); // NOI18N

        firstNameLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        firstNameLabel.setName("firstNameLabel"); // NOI18N

        lastNameLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        lastNameLabel.setName("lastNameLabel"); // NOI18N

        adressLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        adressLabel.setName("adressLabel"); // NOI18N

        zipCodeLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        zipCodeLabel.setName("zipCodeLabel"); // NOI18N

        cityLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        cityLabel.setName("cityLabel"); // NOI18N

        emailLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        emailLabel.setName("emailLabel"); // NOI18N

        phoneLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        phoneLabel.setName("phoneLabel"); // NOI18N

        cardNumberLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        cardNumberLabel.setName("cardNumberLabel"); // NOI18N

        cvvLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        cvvLabel.setName("cvvLabel"); // NOI18N

        cardHolderLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        cardHolderLabel.setName("cardHolderLabel"); // NOI18N

        monthLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        monthLabel.setText(resourceMap.getString("monthLabel.text")); // NOI18N
        monthLabel.setName("monthLabel"); // NOI18N

        yearLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        yearLabel.setText(resourceMap.getString("yearLabel.text")); // NOI18N
        yearLabel.setName("yearLabel"); // NOI18N

        jLabel29.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        jLabel29.setName("jLabel29"); // NOI18N

        cardTypeNoEditLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        cardTypeNoEditLabel.setText(resourceMap.getString("cardTypeNoEditLabel.text")); // NOI18N
        cardTypeNoEditLabel.setName("cardTypeNoEditLabel"); // NOI18N

        cardTypeLabel.setFont(resourceMap.getFont("cardHolderNoEditLabel.font")); // NOI18N
        cardTypeLabel.setName("cardTypeLabel"); // NOI18N

        editButton.setText(resourceMap.getString("editButton.text")); // NOI18N
        editButton.setToolTipText(resourceMap.getString("editButton.toolTipText")); // NOI18N
        editButton.setName("editButton"); // NOI18N
        editButton.setPreferredSize(new java.awt.Dimension(150, 30));
        editButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                editButtonActionPerformed(evt);
            }
        });

        monthLabel1.setFont(resourceMap.getFont("monthLabel1.font")); // NOI18N
        monthLabel1.setText(resourceMap.getString("monthLabel1.text")); // NOI18N
        monthLabel1.setName("monthLabel1"); // NOI18N

        javax.swing.GroupLayout noEditModeLayout = new javax.swing.GroupLayout(noEditMode);
        noEditMode.setLayout(noEditModeLayout);
        noEditModeLayout.setHorizontalGroup(
            noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(noEditModeLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel13, javax.swing.GroupLayout.DEFAULT_SIZE, 834, Short.MAX_VALUE)
                .addGap(42, 42, 42))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, noEditModeLayout.createSequentialGroup()
                .addContainerGap(726, Short.MAX_VALUE)
                .addComponent(editButton, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
            .addGroup(noEditModeLayout.createSequentialGroup()
                .addGap(78, 78, 78)
                .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(phoneNoEditLabel)
                    .addComponent(emailNoEditLabel)
                    .addComponent(firstNameNoEditLabel)
                    .addComponent(lastNameNoEditLabel)
                    .addComponent(adressNoEditLabel)
                    .addComponent(zipCodeNoEditLabel)
                    .addComponent(cityNoEditLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(phoneLabel)
                    .addComponent(emailLabel)
                    .addGroup(noEditModeLayout.createSequentialGroup()
                        .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(firstNameLabel)
                            .addComponent(zipCodeLabel)
                            .addComponent(adressLabel)
                            .addComponent(lastNameLabel)
                            .addComponent(cityLabel))
                        .addGap(82, 82, 82)
                        .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(cardNumberNoEditLabel)
                            .addComponent(cvvNoEditLabel)
                            .addComponent(cardHolderNoEditLabel)
                            .addComponent(expirationNoEditLabel)
                            .addComponent(cardTypeNoEditLabel))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cardTypeLabel)
                            .addComponent(cardHolderLabel)
                            .addComponent(cardNumberLabel)
                            .addComponent(cvvLabel)
                            .addGroup(noEditModeLayout.createSequentialGroup()
                                .addGap(6, 6, 6)
                                .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel29)
                                    .addComponent(yearLabel))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(monthLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 13, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(monthLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 13, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap(337, Short.MAX_VALUE))
        );
        noEditModeLayout.setVerticalGroup(
            noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(noEditModeLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel13)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(noEditModeLayout.createSequentialGroup()
                        .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(firstNameNoEditLabel)
                            .addComponent(firstNameLabel))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lastNameLabel)
                            .addComponent(lastNameNoEditLabel))
                        .addGap(12, 12, 12)
                        .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(adressLabel)
                            .addComponent(adressNoEditLabel))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(zipCodeLabel)
                            .addComponent(zipCodeNoEditLabel))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cityLabel)
                            .addComponent(cityNoEditLabel))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(emailNoEditLabel)
                            .addComponent(emailLabel))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(phoneNoEditLabel)
                            .addComponent(phoneLabel)))
                    .addGroup(noEditModeLayout.createSequentialGroup()
                        .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cardNumberNoEditLabel)
                            .addComponent(cardNumberLabel))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cvvNoEditLabel)
                            .addComponent(cvvLabel))
                        .addGap(12, 12, 12)
                        .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cardHolderNoEditLabel)
                            .addComponent(cardHolderLabel))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(expirationNoEditLabel)
                            .addComponent(jLabel29)
                            .addComponent(monthLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(monthLabel)
                            .addComponent(yearLabel))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(noEditModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cardTypeNoEditLabel)
                            .addComponent(cardTypeLabel))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 77, Short.MAX_VALUE)
                .addComponent(editButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        customerPanel.add(noEditMode, "card2");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 892, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(customerPanel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 892, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 371, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(customerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 371, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void editButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editButtonActionPerformed
        ((CardLayout)customerPanel.getLayout()).show(customerPanel,"card3");
    }//GEN-LAST:event_editButtonActionPerformed

    private void saveButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveButtonActionPerformed
       Customer c = handler.getCustomer();
        c.setFirstName(firstNameField.getText());
        c.setLastName(lastNameField.getText());
        c.setAddress(adressField.getText());
        c.setEmail(emailField.getText());
        c.setMobilePhoneNumber(phoneField.getText());
        c.setPhoneNumber(phoneField.getText());
        c.setPostCode(zipCodeField.getText());
        c.setPostAddress(cityField.getText());

        CreditCard cc = handler.getCreditCard();
        cc.setCardNumber(cardNumberField.getText());
        cc.setCardType(cardTypeBox.getSelectedItem().toString());
        cc.setHoldersName(cardHolderField.getText());

        if(yearBox.getSelectedItem().toString().equals("ÅÅ"))
            cc.setValidYear(0);
        else
            cc.setValidYear(Integer.parseInt(yearBox.getSelectedItem().toString()));


        if(monthBox.getSelectedItem().toString().equals("MM"))
            cc.setValidMonth(0);
        else
            cc.setValidMonth(Integer.parseInt(monthBox.getSelectedItem().toString()));

        cc.setVerificationCode(Integer.parseInt(cwField.getText()));


        // Customer labels
        firstNameLabel.setText(c.getFirstName());
        lastNameLabel.setText(c.getLastName());
        adressLabel.setText(c.getAddress());
        emailLabel.setText(c.getEmail());
        phoneLabel.setText(c.getPhoneNumber());
        zipCodeLabel.setText(c.getPostCode());
        cityLabel.setText(c.getPostAddress());

        // Creditcard fielsd
        cardNumberLabel.setText(cc.getCardNumber());
        cardTypeLabel.setText(cc.getCardType());
        cardHolderLabel.setText(cc.getHoldersName());
        yearLabel.setText(""+cc.getValidYear());
        monthLabel.setText(""+cc.getValidMonth());
        cardTypeLabel.setText(cc.getCardType());
        cvvLabel.setText(cc.getVerificationCode()+"");
        
        ((CardLayout)customerPanel.getLayout()).show(customerPanel,"card2");
    }//GEN-LAST:event_saveButtonActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel adressEditLabel;
    private javax.swing.JTextField adressField;
    private javax.swing.JLabel adressLabel;
    private javax.swing.JLabel adressNoEditLabel;
    private javax.swing.JLabel cardHolderEditLabel;
    private javax.swing.JTextField cardHolderField;
    private javax.swing.JLabel cardHolderLabel;
    private javax.swing.JLabel cardHolderNoEditLabel;
    private javax.swing.JLabel cardNumberEditLabel;
    private javax.swing.JTextField cardNumberField;
    private javax.swing.JLabel cardNumberLabel;
    private javax.swing.JLabel cardNumberNoEditLabel;
    private javax.swing.JComboBox cardTypeBox;
    private javax.swing.JLabel cardTypeEditLabel;
    private javax.swing.JLabel cardTypeLabel;
    private javax.swing.JLabel cardTypeNoEditLabel;
    private javax.swing.JLabel cityEditLabel;
    private javax.swing.JTextField cityField;
    private javax.swing.JLabel cityLabel;
    private javax.swing.JLabel cityNoEditLabel;
    private javax.swing.JPanel customerPanel;
    private javax.swing.JLabel cvvEditLabel;
    private javax.swing.JLabel cvvLabel;
    private javax.swing.JLabel cvvNoEditLabel;
    private javax.swing.JTextField cwField;
    private javax.swing.JButton editButton;
    private javax.swing.JPanel editMode;
    private javax.swing.JLabel emailEditLabel;
    private javax.swing.JTextField emailField;
    private javax.swing.JLabel emailLabel;
    private javax.swing.JLabel emailNoEditLabel;
    private javax.swing.JLabel expirationEditLabel;
    private javax.swing.JLabel expirationNoEditLabel;
    private javax.swing.JLabel firstNameEditLabel;
    private javax.swing.JTextField firstNameField;
    private javax.swing.JLabel firstNameLabel;
    private javax.swing.JLabel firstNameNoEditLabel;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JLabel lastNameEditLabel;
    private javax.swing.JTextField lastNameField;
    private javax.swing.JLabel lastNameLabel;
    private javax.swing.JLabel lastNameNoEditLabel;
    private javax.swing.JComboBox monthBox;
    private javax.swing.JLabel monthLabel;
    private javax.swing.JLabel monthLabel1;
    private javax.swing.JPanel noEditMode;
    private javax.swing.JLabel phoneEditLabel;
    private javax.swing.JTextField phoneField;
    private javax.swing.JLabel phoneLabel;
    private javax.swing.JLabel phoneNoEditLabel;
    private javax.swing.JButton saveButton;
    private javax.swing.JComboBox yearBox;
    private javax.swing.JLabel yearLabel;
    private javax.swing.JLabel zipCodeEditLabel;
    private javax.swing.JTextField zipCodeField;
    private javax.swing.JLabel zipCodeLabel;
    private javax.swing.JLabel zipCodeNoEditLabel;
    // End of variables declaration//GEN-END:variables

}
